home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lpr / RCS / lp.h,v < prev    next >
Encoding:
Text File  |  1990-02-16  |  3.8 KB  |  141 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     90.02.16.13.51.53;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.11.23.10.31.45;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Changes for sparcStation.
  27. @
  28. text
  29. @/*
  30.  * Copyright (c) 1983 Regents of the University of California.
  31.  * All rights reserved.
  32.  *
  33.  * Redistribution and use in source and binary forms are permitted
  34.  * provided that this notice is preserved and that due credit is given
  35.  * to the University of California at Berkeley. The name of the University
  36.  * may not be used to endorse or promote products derived from this
  37.  * software without specific prior written permission. This software
  38.  * is provided ``as is'' without express or implied warranty.
  39.  *
  40.  *    @@(#)lp.h    5.2 (Berkeley) 5/5/88
  41.  */
  42.  
  43. /*
  44.  * Global definitions for the line printer system.
  45.  */
  46.  
  47. #include <stdio.h>
  48. #include <sys/param.h>
  49. #include <sys/file.h>
  50. #include <sys/dir.h>
  51. #include <sys/stat.h>
  52. #include <sys/socket.h>
  53. /* #include <sys/un.h> */
  54. #include <netinet/in.h>
  55. #include <netdb.h>
  56. #include <pwd.h>
  57. #include <syslog.h>
  58. #include <signal.h>
  59. #include <sys/wait.h>
  60. #include <sgtty.h>
  61. #include <ctype.h>
  62. #include <errno.h>
  63. #include "lp.local.h"
  64.  
  65. extern int    DU;        /* daeomon user-id */
  66. extern int    MX;        /* maximum number of blocks to copy */
  67. extern int    MC;        /* maximum number of copies allowed */
  68. extern char    *LP;        /* line printer device name */
  69. extern char    *RM;        /* remote machine name */
  70. extern char    *RG;        /* restricted group */
  71. extern char    *RP;        /* remote printer name */
  72. extern char    *LO;        /* lock file name */
  73. extern char    *ST;        /* status file name */
  74. extern char    *SD;        /* spool directory */
  75. extern char    *AF;        /* accounting file */
  76. extern char    *LF;        /* log file for error messages */
  77. extern char    *OF;        /* name of output filter (created once) */
  78. extern char    *IF;        /* name of input filter (created per job) */
  79. extern char    *RF;        /* name of fortran text filter (per job) */
  80. extern char    *TF;        /* name of troff(1) filter (per job) */
  81. extern char    *NF;        /* name of ditroff(1) filter (per job) */
  82. extern char    *DF;        /* name of tex filter (per job) */
  83. extern char    *GF;        /* name of graph(1G) filter (per job) */
  84. extern char    *VF;        /* name of raster filter (per job) */
  85. extern char    *CF;        /* name of cifplot filter (per job) */
  86. extern char    *FF;        /* form feed string */
  87. extern char    *TR;        /* trailer string to be output when Q empties */
  88. extern short    SC;        /* suppress multiple copies */
  89. extern short    SF;        /* suppress FF on each print job */
  90. extern short    SH;        /* suppress header page */
  91. extern short    SB;        /* short banner instead of normal header */
  92. extern short    HL;        /* print header last */
  93. extern short    RW;        /* open LP for reading and writing */
  94. extern short    PW;        /* page width */
  95. extern short    PX;        /* page width in pixels */
  96. extern short    PY;        /* page length in pixels */
  97. extern short    PL;        /* page length */
  98. extern short    BR;        /* baud rate if lp is a tty */
  99. extern int    FC;        /* flags to clear if lp is a tty */
  100. extern int    FS;        /* flags to set if lp is a tty */
  101. extern int    XC;        /* flags to clear for local mode */
  102. extern int    XS;        /* flags to set for local mode */
  103. extern short    RS;        /* restricted to those with local accounts */
  104.  
  105. extern char    line[BUFSIZ];
  106. extern char    pbuf[];        /* buffer for printcap entry */
  107. extern char    *bp;        /* pointer into ebuf for pgetent() */
  108. extern char    *name;        /* program name */
  109. extern char    *printer;    /* printer name */
  110. extern char    host[32];    /* host machine name */
  111. extern char    *from;        /* client's machine name */
  112. extern int    errno;
  113.  
  114. /*
  115.  * Structure used for building a sorted list of control files.
  116.  */
  117. struct queue {
  118.     time_t    q_time;            /* modification time */
  119.     char    q_name[MAXNAMLEN+1];    /* control file name */
  120. };
  121.  
  122. char    *pgetstr();
  123. char    *malloc();
  124. char    *getenv();
  125. char    *index();
  126. char    *rindex();
  127. @
  128.  
  129.  
  130. 1.1
  131. log
  132. @Initial revision
  133. @
  134. text
  135. @d25 1
  136. a25 3
  137. #ifndef sprite
  138. #include <sys/un.h>
  139. #endif
  140. @
  141.